package com.zd.application.service;

import java.util.Hashtable;

public class ManageUtil {
	public static void kick(UserHandler userHandler, Hashtable<String, UserHandler> userHandlers) {
		//删除集合中的自己
		userHandlers.remove(userHandler.getMyself().getUid());
		//删除所有观察自己的观察者
		userHandler.deleteObservers();
		
		for (UserHandler userHandler2 : userHandlers.values()) {
			//删除自己观察其他人的注册
			userHandler2.deleteObserver(userHandler);
		}
	}
}
